package com.suitsoft.ut.entity.commons;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.suitsoft.ut.entity.IdEntity;
import com.suitsoft.ut.entity.thesis.Thesis;

/**
 * 周记实体类
 *@author Suineg
 */
@Entity
@Table(name="LW_THESIS_WEEK_RECORD")
public class Weeklydiary extends IdEntity{
	/** 题目 */
	private Thesis thesis;
	/** 显示名 */
	private String diaryName;
	/** 周记内容 */
	private String diaryContent;
	/** 指导教师 */
	private String diaryTeacherName;
	/** 周记类型 即第几周的 */
	private Long diaryType;
	/** 指导教师签字时间 */
	private Date diaryTeacherDate;
	/** 最后操作时间 */
	private Date lastEditDate;
	/** 创建学生 */
	private String lastEditStudent;
	/** 教师评语 */
	private String teacherContent;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="THESIS_iD")
	public Thesis getThesis() {
		return thesis;
	}
	public void setThesis(Thesis thesis) {
		this.thesis = thesis;
	}
	public String getDiaryName() {
		return diaryName;
	}
	public void setDiaryName(String diaryName) {
		this.diaryName = diaryName;
	}
	public String getDiaryContent() {
		return diaryContent;
	}
	public void setDiaryContent(String diaryContent) {
		this.diaryContent = diaryContent;
	}
	public String getDiaryTeacherName() {
		return diaryTeacherName;
	}
	public void setDiaryTeacherName(String diaryTeacherName) {
		this.diaryTeacherName = diaryTeacherName;
	}
	@JoinColumn(unique=true)
	public Long getDiaryType() {
		return diaryType;
	}
	public void setDiaryType(Long diaryType) {
		this.diaryType = diaryType;
	}
	public Date getDiaryTeacherDate() {
		return diaryTeacherDate;
	}
	public void setDiaryTeacherDate(Date diaryTeacherDate) {
		this.diaryTeacherDate = diaryTeacherDate;
	}
	public Date getLastEditDate() {
		return lastEditDate;
	}
	public void setLastEditDate(Date lastEditDate) {
		this.lastEditDate = lastEditDate;
	}
	public String getLastEditStudent() {
		return lastEditStudent;
	}
	public void setLastEditStudent(String lastEditStudent) {
		this.lastEditStudent = lastEditStudent;
	}
	public String getTeacherContent() {
		return teacherContent;
	}
	public void setTeacherContent(String teacherContent) {
		this.teacherContent = teacherContent;
	}
}

